package com.ecoolex.discount.sales.core.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ecoolex.discount.sales.core.manager.UPlanCouponBatchManager;
import com.ecoolex.discount.sales.entity.DiscountBrandWithBLOBs;
import com.ecoolex.discount.sales.entity.UPlanCouponBatch;
import com.ecoolex.discount.sales.pojo.QueryCouponBatchDTO;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.framework.common.pojo.Sorting;

@Service
public class UplanCouponBatchService {
    @Autowired
    UPlanCouponBatchManager uPlanCouponBatchManager;

    public UPlanCouponBatch addBatch(UPlanCouponBatch entity){
       return uPlanCouponBatchManager.addBatch(entity);
    }

	public Pagination<DiscountBrandWithBLOBs> couponBatchList(QueryCouponBatchDTO query, Sorting[] sorts, Page page){
        return uPlanCouponBatchManager.couponBatchList(query,sorts,page);
    }

    public UPlanCouponBatch get(Long batchId){
        return uPlanCouponBatchManager.get(batchId);
    }




}
